
public class Deeds {
private String name;
private int rent;
private int cost;
private String owner = null;
private int position;
private int group;
private int realRent;
private boolean ownall;
private boolean Mortgage=false;
private int house=0;
private int hotel=0;
public Deeds(int x,String name, int cost, int position, int rent){
	this.name = name;
	this.group=x;
	this.cost = cost;
	this.position = position;
	this.rent = rent;
	this.realRent=this.rent;
}

public void setOwner(String player){
this.owner = player;
}

public String getOwner(){
	String none = "NONE";
	if(this.owner==null){
		return none;
	}else{
	return owner;
	}
}

public int getPosition(){
	return position;
}

public int getCost(){
	if(this.Mortgage==false){
	return cost;
	}else{
		return 0;
	}
}

public String getName(){
	return name;
}

public int getRent(){
	return rent;
}
public void setMortgage(boolean bool){
	this.Mortgage=bool;
}
public boolean getMortgage(){
	return Mortgage;
}

public void ownAllColorGroup(){
	if(this.house==0){
	this.rent=this.rent*2;
	this.ownall=true;
	}
}
public int getGroup(){
	return group;
}
public void notOwnGroup(){
	this.rent=this.realRent;
	this.ownall=false;
}
public boolean getOwnall(){
	return this.ownall;
}
public void setHouse(int x){
	if(this.house!=4){
	this.rent=this.realRent;
	house=house+x;
	if(this.house==1){
	rent=rent+10;
	}
	if(this.house==2){
		rent=rent+20;
		}
	if(this.house==3){
		rent=rent+30;
		}
	if(this.house==4){
		rent=rent+40;
		}
	}
}
public void setHotel(int x){
	this.rent=this.realRent;
	this.rent=this.rent+80;
	hotel=hotel+x;
}
public int getHouse(){
	return house;
}
public int getHotel(){
	return hotel;
}




}
